oxan / hapt Goto Github PK
View Code? Open in Web Editor NEWHome Assistant Presence Tracker for OpenWRT
License: GNU General Public License v3.0
Home Assistant Presence Tracker for OpenWRT
License: GNU General Public License v3.0
hi,
running latest openwrt,
my config file:
config hapt 'global'
option host 'http://ipaddress:8123'
option token 'token'
option consider_home_connect '86400'
option consider_home_disconnect '60'
option device_id_prefix ''
# list wifi_interfaces 'wlan0'
# list wifi_interfaces 'wlan1'
# list track_mac_address '00:11:22:33:44:55'
# list track_mac_address '66:77:88:99:aa:bb'
in logread I get
Command failed: Not found
Traceback (most recent call last):
File "/usr/bin/hapt", line 278, in
File "/usr/bin/hapt", line 260, in oneshot
File "/usr/bin/hapt", line 76, in get_connected_clients
File "/usr/bin/hapt", line 62, in ubus_call
ValueError: syntax error in JSON
If a device disconnect, no hapt execution is execute (see it in logread)
status will be fine submitted, if i run hapt via cli
thanks for your help and your tool
br
Sat Mar 28 18:40:19 2020 daemon.err hapt[1112]: Traceback (most recent call last):
Sat Mar 28 18:40:19 2020 daemon.err hapt[1112]: File "/usr/bin/hapt", line 182, in <module>
Sat Mar 28 18:40:19 2020 daemon.err hapt[1112]: File "/usr/bin/hapt", line 98, in __init__
Sat Mar 28 18:40:19 2020 daemon.err hapt[1112]: File "/usr/bin/hapt", line 42, in get_wireless_interfaces
Sat Mar 28 18:40:19 2020 daemon.err hapt[1112]: KeyError: ifname
(commit 8ffe216).
I think this happens because we start before hostapd
has brought the interface online, and thus there is no ifname
for the configured interface.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.