Skip to content

Instantly share code, notes, and snippets.

View SignalK_NR_Exhausttemp.txt
[{"id":"540d1e27.4b2ae","type":"signalk-subscribe","z":"84ac7b53.3bfa68","name":"port.exhaustTemperature ","flatten":true,"context":"vessels.self","path":"propulsion.port.exhaustTemperature","source":"signalk-node-red","period":1000,"x":170,"y":100,"wires":[["972d13ad.877cf"]]},{"id":"3c1f5d23.4842b2","type":"signalk-subscribe","z":"84ac7b53.3bfa68","name":"starboard.exhaustTemperature","flatten":true,"context":"vessels.self","path":"propulsion.starboard.exhaustTemperature","source":"signalk-node-red","period":1000,"x":190,"y":180,"wires":[["9eecfd70.d936b"]]},{"id":"972d13ad.877cf","type":"switch","z":"84ac7b53.3bfa68","name":"If over 300 Kelvin","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"300","vt":"str"},{"t":"lte","v":"300","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":430,"y":100,"wires":[["8014c150.fd873"],["53d36d2d.996844"]]},{"id":"8014c150.fd873","type":"signalk-send-notification","z":"84ac7b53.3bfa68","name":"send alarm","path":"ptExhaustTemp","state":"
@MatsA
MatsA / max-mintemp.php
Created Jan 18, 2019
Bug fix for max-mintemp.php
View max-mintemp.php
<?php include('livedata.php');include('common.php');header('Content-type: text/html; charset=utf-8');?>
<div class="topmin">
<?php //Temperature min day
if ($weather["temp_units"]=='C' && $weather["temp_today_low"]>30){echo "<topred1>",$weather["temp_today_low"] ;echo "&deg;<smalluvunit>".$weather["temp_units"] ; }
else if ($weather["temp_units"]=='C' && $weather["temp_today_low"]>=24){echo "<toporange1>",$weather["temp_today_low"] ;echo "&deg;<smalluvunit>".$weather["temp_units"] ; }
else if ($weather["temp_units"]=='C' && $weather["temp_today_low"]>=18){echo "<topyellow1>",$weather["temp_today_low"] ;echo "&deg;<smalluvunit>".$weather["temp_units"] ; }
else if ($weather["temp_units"]=='C' && $weather["temp_today_low"]>=6){ echo "<topgreen1>", $weather["temp_today_low"] ;echo "&deg;<smalluvunit>".$weather["temp_units"] ; }
else if ($weather["temp_units"]=='C' && $weather["temp_today_low"]>-50){ echo "<topblue1>", $weather["temp_today_low"] ;echo "&deg;<smalluvunit>".$weather["temp_units"] ; }
@MatsA
MatsA / Signalk_NR_DS18B20_temp
Last active Sep 15, 2018
Node Red flow for SignalK. Measuring temperature with DS18B20. Info at https://pysselilivet.blogspot.com/2018/07/signalk-measuring-temperature.html
View Signalk_NR_DS18B20_temp
[{"id":"9ae73cb2.1aa53","type":"tab","label":"Flow 1","disabled":true,"info":""},{"id":"b203a1de.b0e7b","type":"inject","z":"9ae73cb2.1aa53","name":"","topic":"","payload":"","payloadType":"date","repeat":"5","crontab":"","once":false,"onceDelay":"1","x":130,"y":60,"wires":[["b50bf0c3.5a39"]]},{"id":"b50bf0c3.5a39","type":"rpi-ds18b20","z":"9ae73cb2.1aa53","topic":"","array":true,"name":"","x":290,"y":60,"wires":[["5755463c.bc7758"]]},{"id":"5755463c.bc7758","type":"split","z":"9ae73cb2.1aa53","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":130,"y":140,"wires":[["7338dfbc.b0fb1"]]},{"id":"7338dfbc.b0fb1","type":"function","z":"9ae73cb2.1aa53","name":"Set values","func":"\ntempIn = msg.payload.temp + 273.15;\ntempDsId = msg.payload.file\n\nswitch(tempDsId) {\n \n case \"28-051693ea56ff\" :\n SkPath = \"propulsion.starboard.exhaustTemperature\"; \n break;\n \n case \"28-051693ec41ff\" :\n SkPath = \"propulsion.port.exhaustTempe
View homebridge.service
[Unit]
Description=Node.js HomeKit Server
After=syslog.target network-online.target
[Service]
Type=simple
User=pi
# Could be /usr/local/bin/homebridge
ExecStart=/usr/bin/homebridge
Restart=on-failure
@MatsA
MatsA / openplotter-settings.json
Created Jul 21, 2017
Openplotter default SignalK configuration
View openplotter-settings.json
{
"vessel": {
"uuid": "urn:mrn:imo:mmsi:98765432"
},
"pipedProviders": [
{
"pipeElements": [
{
"type": "providers/udp",
"options": {
View cumulusdata.php
Check the link to the documentation
@MatsA
MatsA / config.json
Last active Feb 5, 2017
Hombridge and config.json. Configuration file for Domoticz and Telldus Live. http://pysselilivet.blogspot.com/2016/11/homekit-for-telldus-live.html
View config.json
{
"bridge": {
"name": "Homebridge",
"username": "CC:21:3E:E4:DE:33",
"port": 51826,
"pin": "031-45-154"
},
"description": "Configuration file for Domoticz and Telldus Live.",
"platforms": [
{
You can’t perform that action at this time.