Skip to content

Instantly share code, notes, and snippets.

@dnoegel
dnoegel / SwagCategoryForward.php
Created August 15, 2015 19:25
(Shopware Plugin) If a customer hits a category that does not belong to the current subshob - redirect him / her to index page
<?php
/**
* The Bootstrap class is the main entry point of any shopware plugin.
*
* Short function reference
* - install: Called a single time during (re)installation. Here you can trigger install-time actions like
* - creating the menu
* - creating attributes
@dnoegel
dnoegel / gist:ac732caeccd32fa3e972
Created November 12, 2015 06:57
My i3 config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@dnoegel
dnoegel / WarmUpHttpCacheFasterCommand.php
Last active August 31, 2016 11:10
Experimental CacheWarmer which increases performance by re-using the shopware kernel
<?php
/**
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
@dnoegel
dnoegel / sungrow_modbus_register.tsv
Last active November 11, 2024 10:13
Modbus Register für Sungrow Wechselrichter zum Import in Iobroker
_address name description unit type len factor offset formula role room cw isScale
4999 Device type code Geräte Typ-Code int8be 1 1 0 value false false
5000 Nominal Output Power Installierte Leistung Kw uint16be 1 0.1 0 value false false
5002 Daily Output Energy Eigene Energienutzung heute (PV & Akku) Kwh uint16be 1 0.1 0 value false false
5003 Total Output Energy Eigene Energienutzung gesamt (PV & Akku) Kwh uint32sw 2 0.1 0 value false false
5007 Inside Temperature Temperatur im Wechselrichter °C int16be 1 0.1 0 value false false
5010 MPPT 1 Voltage MPPT1 Spannung V uint16be 1 0.1 0 value false false
5011 MPPT 1 Current MPPT1 Strom A uint16be 1 0.1 0 value false false
5012 MPPT 2 Voltage MPPT2 Spannung V uint16be 1 0.1 0 value false false
5013 MPPT 2 Current MPPT2 Strom A uint16be 1 0.1 0 value false false
@dnoegel
dnoegel / sungrow_modbus_register_reduced.tsv
Last active October 11, 2024 10:13
Reduced set of modbus registers for sungrow inverters
_address name description unit type len factor offset formula role room cw isScale
5002 Daily Output Energy Eigene Energienutzung heute (PV & Akku) Kwh uint16be 1 0.1 0 value false false
5003 Total Output Energy Eigene Energienutzung gesamt (PV & Akku) Kwh uint32sw 2 0.1 0 value false false
5007 Inside Temperature Temperatur im Wechselrichter °C int16be 1 0.1 0 value false false
5010 MPPT 1 Voltage MPPT1 Spannung V uint16be 1 0.1 0 value false false
5011 MPPT 1 Current MPPT1 Strom A uint16be 1 0.1 0 value false false
5012 MPPT 2 Voltage MPPT2 Spannung V uint16be 1 0.1 0 value false false
5013 MPPT 2 Current MPPT2 Strom A uint16be 1 0.1 0 value false false
5016 Total DC Power PV-Leistung aktuell W uint32sw 2 1 0 value false false
12999 System State Systemstatus uint16be 1 1 0 value false false