- Readability First: Prioritize clear, self-documenting code over clever solutions
Warning
i2cset commands with wrong parameters can damage your system. Handle with care!
The bus number may change after a restart, don't hardcode it into your scripts.
Before you use any commands on this page you MUST find out the bus number for the led control on your system
Run
i2cdetect -y 0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import datetime | |
import holidays | |
import calendar | |
workingdays_year = 0 | |
uk_holidays=holidays.UK() | |
this_year=datetime.datetime.now().year | |
for month in range (1, 13): | |
weekdays = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
A simple grafana weather panel combined by posts from this page: https://github.com/grafana/grafana/issues/1816 | |
Just change the WOE_ID. Get one for your region here: http://www.woeidlookup.com/ | |
--> | |
<script> | |
var WOE_ID = XXXX; | |
var callbackFunction = function (data) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Al West, 2014, UK. | |
compiles to 6,240 bytes | |
Demonstrates the use a 20x4 LCD display as Matrix Orbital Device in LCD Smartie. | |
This should work all LCD displays that are compatible with the Hitachi HD44780 driver. | |
This sketch takes data from LCD Smartie emulating a Matrix Orbital and shows desired data. |