fedulovivan / mhz19b

mh z19b co2 sensor client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Historical data in web page is one hour ahead compared to PC clock

Ajut opened this issue · comments

commented

Hello,

My configuration:

  • System: Kernel: 4.4.0-138-generic x86_64 (64 bit)
  • Distro: Linux Mint 18.3 Sylvia
  • yarn 1.13.0-1
  • nodejs 11.6.0-1nodesource1

$ timedatectl
Local time: P 2019-01-13 13:42:18 EET
Universal time: P 2019-01-13 11:42:18 UTC
RTC time: P 2019-01-13 11:42:18
Time zone: Europe/Tallinn (EET, +0200)
Network time on: yes
NTP synchronized: yes
RTC in local TZ: no
Br,
Ajut

timezone is hardcoded here - https://github.com/fedulovivan/mhz19b/blob/master/public/index.html#L155
you can adjust it to match you local time

commented

Glad to observe you was able to launch my prototype code!
Most probably such errors are caused by bad electrical connections.
Try to reduce wires length, and solder wires instead using breadboard jumpers (if you do).

commented
commented