Go to advanced search

by stressdidri
Mon Jun 26, 2017 9:39 pm
Forum: Automation, sensing and robotics
Topic: Web enabled thermostat project
Replies: 65
Views: 66303

Re: Web enabled thermostat project

I'd like the damn thing to read temp not from the sensor but from a text file #!/usr/bin/env python import os import re import RPi.GPIO as GPIO import time import math def main(): GPIO.setwarnings(False) GPIO.cleanup() GPIO.setmode(GPIO.BCM) # set BCM pin number for the furnace. CENTRALA = 26 GPIO.s...
by stressdidri
Wed Oct 26, 2016 5:51 pm
Forum: Python
Topic: reading gpio out pin status
Replies: 20
Views: 86885

Re: reading gpio out pin status

Got it to work

VALUES ('$state[$pinStatus]')";
by stressdidri
Wed Oct 26, 2016 5:07 pm
Forum: Python
Topic: reading gpio out pin status
Replies: 20
Views: 86885

Re: reading gpio out pin status

how do i make this work ? I'm trying to read a gpio and post it's status as a temperature in a graph ... when it's on the value is 20 when it's off value is 15 I'm trying to get the 20 or 15 values in the MySql DB <?php // Set up valid status list $state[0] = "15"; $state[1] = "20"; ?> Centrala este...

Go to advanced search