Jump to content

lukaszertel

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by lukaszertel

  1. Thank You Frank, I will check it at friday. At the moment I don't have access to my Orange Pi. And of couse I will write down my results. Cheers! ================= --------Edited-------- ================= It works! I only commented out humidity parameters - rest is as You suggested. Thank You once again for help FRANK333 :-) One additional question: I messed up a little bit with setting correct time on my Orange Pi Zero. I changed it and now it's correct, but not on stats graph. On browser tab with Statistics there is still incorrect time displayed. ================= --------Edited-------- ================= SOLVED! To solve issue with incorrect hours on stats page graph I found rrd file in /var/lib/rpimonitor/stat directory. Simply remove and restart RPi Monitor did the trick. Cheers!
  2. Working like a charm :-) root@orangepizero:/etc/rpimonitor# cat /sys/bus/w1/devices/28-020b92459bc7/w1_slave 6a 01 55 05 7f 7e 81 66 1d : crc=1d YES 6a 01 55 05 7f 7e 81 66 1d t=22625 I've lastest available version of RPi-Monitor on my Orange Pi Zero: Version: 2.12-r0 by Xavier Berger I tested both values: t.(d+)$ and t=(d+)$ Those values are used in conf file, in my case custo.conf witch is mentioned in main config file /etc/rpimonitor/data.conf Of course, after each change I restart service with command: service rpimonitor restart ====== Edited: ====== I found that this two sections are only important for drawing temperature stats: dynamic.18.name=045 dynamic.18.source=/sys/bus/w1/devices/28-020b92459bc7/w1_slave dynamic.18.regexp=t.(d+)$ dynamic.18.postprocess=sprintf("%.2f", $1/1000) dynamic.18.rrd=GAUGE web.statistics.1.content.18.name=045 web.statistics.1.content.18.graph.1=045 web.statistics.1.content.18.ds_graph_options.045.label=045 (°C) What I'm not sure is regular expression, can someone tell me how to extract only temperature value from this command? cat /sys/bus/w1/devices/28-020b92459bc7/w1_slave
  3. Dear Armbian friends, I have question about add DS18B20 temp sensor at RPi-Monitor (web based interface). Can somebody paste working config of this sensor? On internet I found many tutorials but with DHT sensors. On this page (Xavier is an author of RPi-Monitor I think) is described DS18B20 but in status "Working in progress". I tried this but without luck. https://xavierberger.github.io/RPi-Monitor-docs/32_sensors.html?highlight=ds18b20 Cheers, Lucas
  4. I'm back :-) Well, it's working! Almost.. When I checking temperature not evey response is proper, some anwers are with "crc=c9 NO". I have checked wiring and connections on board few times, changed resistor and cables. Do you have any idea? root@orangepizero:~# cat /sys/bus/w1/devices/28-020b92459bc7/w1_slave ff ff ff ff ff ff ff ff ff : crc=c9 NO 00 00 00 00 00 00 00 00 00 t=-62 root@orangepizero:~# cat /sys/bus/w1/devices/28-020b92459bc7/w1_slave 57 01 55 05 7f 7e 81 66 9d : crc=9d YES 57 01 55 05 7f 7e 81 66 9d t=21437 root@orangepizero:~# cat /sys/bus/w1/devices/28-020b92459bc7/w1_slave 54 01 55 05 7f 7e 81 66 58 : crc=58 YES 54 01 55 05 7f 7e 81 66 58 t=21250 root@orangepizero:~# cat /sys/bus/w1/devices/28-020b92459bc7/w1_slave ff ff ff ff ff ff ff ff ff : crc=c9 NO 54 01 55 05 7f 7e 81 66 58 t=-62 root@orangepizero:~# cat /sys/bus/w1/devices/28-020b92459bc7/w1_slave ff ff ff ff ff ff ff ff ff : crc=c9 NO 54 01 55 05 7f 7e 81 66 58 t=-62 root@orangepizero:~# cat /sys/bus/w1/devices/28-020b92459bc7/w1_slave 53 01 55 05 7f 7e 81 66 88 : crc=88 YES 53 01 55 05 7f 7e 81 66 88 t=21187 ============================ EDIT: Okay, I got it echo 408000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq Default was 120000 root@orangepizero:~# more /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 120000 I found answer in this topic:
  5. New sensor (DS18B20) is in delivery, I expect tomorrow I should get it. Cheers!
  6. Thank you for taking your time on tests My cpufreg now looks like root@orangepizero:~# more /etc/default/cpufrequtils # WARNING: this file will be replaced on board support package (linux-root-...) upgrade ENABLE=true MIN_SPEED=480000 #MIN_SPEED=240000 MAX_SPEED=1200000 #GOVERNOR=ondemand GOVERNOR=interactive But nothing is discovered. I hope that new sensor will come soon! Stay tuned ;-)
  7. A moment ago I have ordered DS18B20. Hope it will do the job. When you mention about this model I found that this guy also used it. https://www.norwegiancreations.com/2017/06/do-it-yourself-snmp-temperature-monitoring-system/ When DS18B20 arrive I will write if it helps. Cheers!
  8. I have three samples of DHT11, one of them is equipped with diode but it seems that this model isn't compatible. I will order DS18B20. Can someone confirm which temperature sensor is working on Orange Pi Zero (with H2+)?
  9. Checked. On 20k scale is 4.68 so it looks like 4k7. I also tried another sample of resistor to be sure that this is not the case. No changes.
  10. Thank you for answer. I have switched between kernels (installed bionic image): 4.14.70 4.14.84 4.18.8 Nothing changed. Seems that it's dead end - it's not a kernel issue. Any other ideas?
  11. Dear Armbian Friends, My temperature sensor is not detected by board. Can somebody give me some advice what should I chceck / change / test now? Cheers! Lucas I tried: - another sample of DHT11 - changed cables to different ones - changed - both tested sensors were connected with 4.7k resistor between positive and data cable - tried different system versions like bionic, stretch and now jessie - tried to load modules via /etc/modules-load.d/modules.conf g_serial w1-sunxi w1-gpio w1-therm - or with /boot/armbianEnv.txt (disabling loading with modules.conf) wverbosity=1 logo=disabled console=serial disp_mode=1920x1080p60 overlay_prefix=sun8i-h3 overlays=usbhost2 usbhost3 w1-gpio param_w1_pin=PA10 param_w1_pin_int_pullup=1 rootdev=UUID=9cecf84e-027e-40ad-b711-ae5d323d9043 rootfstype=ext4 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u - tried to change data pin from GPIO10 (number 26) to GPIO 15 MOSI (number 19) Below some info about my system. sysadm@orangepizero:~$ ls /sys/bus/w1/devices/ w1_bus_master1 sysadm@orangepizero:~$ cat /sys/devices/w1_bus_master1/w1_master_slave_count 0 sysadm@orangepizero:~$ dmesg | grep wire [ 7.802453] Driver for 1-wire Dallas network protocol. [ 7.807173] gpio-10 (onewire@0): enforced open drain please flag it properly in DT/ACPI DSDT/board file sysadm@orangepizero:~$ sudo cat /sys/kernel/debug/gpio [sudo] password for sysadm: gpiochip0: GPIOs 0-223, parent: platform/1c20800.pinctrl, 1c20800.pinctrl: gpio-10 ( |onewire@0 ) in lo gpio-17 ( |orangepi:red:status ) out lo gpio-20 ( |vcc-wifi ) out hi gpio-166 ( |cd ) in lo gpio-204 ( |usb0_id_det ) in hi IRQ gpiochip1: GPIOs 352-383, parent: platform/1f02c00.pinctrl, 1f02c00.pinctrl: gpio-358 ( |vdd-cpux ) out hi gpio-359 ( |reset ) out hi gpio-362 ( |orangepi:green:pwr ) out hi sysadm@orangepizero:~$ uname -a Linux orangepizero 4.19.17-sunxi #5.73 SMP Mon Jan 28 21:06:40 CET 2019 armv7l GNU/Linux sysadm@orangepizero:~$ cat /etc/issue Debian GNU/Linux 9
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines