FRANK333

Members
  • Content Count

    33
  • Joined

  • Last visited

About FRANK333

  • Rank
    Advanced Member

Profile Information

  • Gender
    Male
  • Location
    Italy
  • Interests
    electronics , informatics
  1. I tried to add at the end of the script, these 4 lines : def signal_term_handler(signal, frame): print 'got SIGTERM' sys.exit(0) signal.signal(signal.SIGTERM, signal_term_handler) but the relays maintain the status, even after the kill command.
  2. ok I corrected and added the lines to make the script a daemon, I noticed however that if I kill the script (kill 1234) or if I block the OPI0 the relays card remains in the last state in which it is, how could you do to reset it to off?
  3. Okay Martin I solved was just a tabulation problem as I could tell from your example. Now the rudimentary thermostat works, I would like to make sure that it remains in operation as a daemon, insert different temperatures at different times of the day, and finally make a decent GUI. But the road is uphill....
  4. here is the error it returns, it seems that I can't find the variable maxTemp, and yet I defined it with maxTemp = 22 root@orangepizero:~# python test.py File "test.py", line 32 if temperature > maxTemp: ^ IndentationError: unindent does not match any outer indentation level root@orangepizero:~# python -m tabnanny test.py 'test.py': Indentation Error: unindent does not match any outer indentation level (<tokenize>, line 32) root@orangepizero:~#
  5. Martin, I installed the library and your test works. When I try to insert an if else line, the script doesn't work. What's wrong? I don't know anything about Python ,I'm sorry.
  6. I'm looking for a software that through a web page (or an android app) makes the Opi 0 work as a thermostat or at least a software sketch. As for the test program I'll try, but that library is for A20 I have an H2 will work ?
  7. All right, now I do a clean installation and I start again, then I let you know. but I had decommented a few lines but the software did not start.Do you have any simple project to start from?
  8. hello martin , let me explain myself better , using this tutorial ( thank you the author ) http://davetsao.com/blog/2015-07-11-raspberry-pi-thermostat.html there is this command import RPi.GPIO as GPIO , which I replaced with OPi.GPIO (of course I loaded the libraries Opi) it seems that the commands setmode setup mode are not recognized
  9. I'm going to use an orange Pi zero to make a thermostat adjustable via lan; do you know how to point me to some easy to apply project? I tried several projects, with ds1820b sensors and relais card for raspberry, but I have problems for example with the libraries RPi.GPIO because they do not match those OPi.GPIO. I can currently turn the relays on and off with an android app or via terminal command.
  10. thanks guidol, now I'm almost sure that it depends on some software problem. One odd thing is that I can not reactivate armbianmonitor -u .
  11. after the automatic update to: Linux 4.19.20-sunxi64 aarch64 #5.75 SMP I have these problems: armbianmonitor -u no longer creates the link. the cpu temperature corresponds to that of the external sensor the /etc/default/cpufrequtils file has changed and the cpu frequency has decreased to 120 mhz Is there anyone who has the pizeroplus (h5) and who can check if it has similar values?
  12. mantouboji, you can give this command: cat /sys/kernel/debug/pinctrl/1c20800.pinctrl/pinmux-pins, and cat /sys/kernel/debug/pinctrl/pinctrl-maps you should have the sensor connected to pin 37 and the PA20 in your armbianEnv.txt: instead there seems to be PA10. can you put a photo of your sensor and how it is connected? ps: the dupont connector in the photo at pin 37 does not appear to be securely attached
  13. someone, can report here the temperatures it detects from its orange pi and what kind of cooling it has (heatsink, fan, etc.). I still do not understand the problem of rpimonitor and armbianmonitor (I would like to understand what is the correct temperature of the CPU) root@server:~# cat /sys/class/thermal/thermal_zone0/temp 29750 root@server:~# cat /sys/devices/virtual/thermal/thermal_zone0/temp 28798 root@server:~# cat /etc/armbianmonitor/datasources/soctemp 15937
  14. I also had problems working, I reloaded armbian with the new kernel, connected sensor and resistance (checking that the circuit is correct) and works continuously for months. Read my previous posts and connect everything as I did I must work! (from what you posted seems just the sensor that is mounted badly) I'm sorry if I insist.