- zeromq: stable 3.2.2
- go: 1.0.3
- gozmq: zmq_3_x
- python: 2.7.3
- pyzmq: 13.0.2
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
| PROJECT := $(notdir $(CURDIR)) | |
| EXCECUTABLE = $(BUILDDIR)/$(PROJECT) | |
| # Directories specification | |
| SRCDIRS := src | |
| INCDIRS := include | |
| BUILDDIR := build | |
| # @note: to add another source extension, add to herer AND make sure to | |
| # write the " $(BUILDDIR)/%.o: %.ext " rule for this extention in order to work |
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
| //-----------------------Intro - most important: | |
| // wp-content/themes/evolve/functions.php | |
| function funkyMonky() { | |
| // Handle request then generate response using echo or leaving PHP and using HTML | |
| echo "hi"; | |
| } | |
| add_action('admin_post_takeaway_settings_order','funkyMonky'); |
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
| blueprint: | |
| name: "Person: Status Update" | |
| description: Making Home Assistant’s Presence Detection not so Binary | |
| domain: automation | |
| input: | |
| person_device_tracker: | |
| name: Device tracker | |
| description: This is the device tracker for the person | |
| selector: | |
| entity: |
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
| #!/bin/sh | |
| #From https://golang.org/doc/install/source#environment | |
| platforms=(aix android darwin dragonfly freebsd illumos js linux netbsd openbsd plan9 solaris windows) | |
| arches=(386 amd64 arm arm64 mips mipsle mips64 mips64le ppc64 ppc64le s390x wasm) | |
| #.go file to build | |
| test "$1" && target="$1" | |
| if ! test "$target"; then |
Use Shelly 2.5 for existing roller/blinds with up/down button switches and a second shutter for the tilt angle.
- Activate shutter and blinds (info)
- Deactivate some modules (Domoticz etc.)
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
| public class GPIO { | |
| public String port; | |
| public int pin; | |
| //get direction of gpio | |
| public String getInOut() | |
| { | |
| String command = String.format("cat /sys/class/gpio/%s/direction",this.port); | |
| try { |
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
| switch 1: | |
| platform: telnet | |
| switches: | |
| garage_door: | |
| resource: "192.168.1.100" | |
| port: 6722 | |
| command_on: '11*' | |
| command_off: '21:0^' | |
| command_state: '00:0^' | |
| value_template: '{{ value == "10000000" or value == "11000000" }}' |
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
| exten => _X.,1,Set(CURL_RESULT=${CURL(http://domain.com/test.txt)}) | |
| same => n,GotoIf($["${CURL_RESULT}" = "1"]?result1:result2) | |
| same => n(result1),Verbose(Result 1) | |
| same => n,Hangup | |
| same => n(result2),Verbose(Result other) | |
| same => n,Hangup |
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
| /* | |
| Serve is a very simple static file server in go | |
| Usage: | |
| -p="8100": port to serve on | |
| -d=".": the directory of static files to host | |
| Navigating to http://localhost:8100 will display the index.html or directory | |
| listing file. | |
| */ | |
| package main |
NewerOlder