Giter Club home page Giter Club logo

owntags's Introduction

  • πŸ‘‹ Hi, I’m @mrmay-dev
  • πŸ‘€ I’m interested in backpacking, using programming as a teacher, ADHD research, and micro-controllers
  • 🌱 I play with R, Autohotkey, Python and CircuitPython
  • πŸ’žοΈ I’m not (yet) worthy of screwing up contributing to someone else's code.
  • πŸ“« How to reach me: use GitHub

owntags's People

Contributors

dchristl avatar mrmay-dev avatar plones avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

owntags's Issues

Key Error

At the moment, there are 2 prefix_files in the keys folder. All data is anonymized so don't worry, everything is fine with above data.

Hope @mrmay-dev can help to fix it, i get stuck here.

anonymous@iMac-Pro application % python3 request_reports.py --time 23:59  --owntags
2029 Sep 99 (Mon) 24:05:06
Using python3
Days: 0, Hrs: 23, Min: 59
200 OK

271 reports received.
25 reports used.
Used 1000000000 as creation_stamp for bv14N+8
'bv14N+8'
Traceback (most recent call last):
  File "/Users/anonymous/Desktop/owntags-main/application/request_reports.py", line 182, in <module>
    ordered = owntags(ordered, time_window, found)
  File "/Users/anonymous/Desktop/owntags-main/application/OwnTags_plugin.py", line 118, in owntags
    if tag_options[prefix]["location"]:
KeyError: 'bv14N+8'

MQTT Message Delivery Improvement

As mentioned by @system21 in seemoo-lab/openhaystack#213 (reply in thread), seems there have been a few times that message failed to deliver to the receivers, however, there was no further information provided.

I have looked at the code of this project, multiple places used QoS:0 which might allow the message to be discarded, which makes me wonder maybe it's worth to give a try to adjust the location message QoS from 0 to 1 in code could improve the delivery.

"qos": 0, "retain": True

Ref:
https://www.hivemq.com/blog/mqtt-essentials-part-6-mqtt-quality-of-service-levels/#:~:text=Published%3A%20February%2016%2C%202015,guarantee%20for%20a%20specific%20message.

friendly name

First of all, it works, really cool 😁

Is it possible to make the tags a bit clearer? the keyfile is named bike and the tag appears as "ke" under "Friends" that is not very cool. or is it a owntracks thing?
You can klick on it and the identifier shows bike, but the trackerid only accepts two characters? If you have more tags, thats very mixed up.

How do you schedule OwnTags?

It took me a while to figure out how to schedule scripts to run on MacOS. I believe cron is still working but depreciated, so I decided to look into Apple's LauchD. Seems way more complicated than what I need, still I ended up using LauchControl. It works well and I can see the logs.

How are you scheduling OwnTags to run on your system?

Feature Request: Say when last report was received

Not sure if this is possible because you put how far back in reports you want, but it would be useful for the output to say "last report received at X" or under missing keys say when it was last seen.

Either way keep up the good work, glad to finally have a way of easily integrating into home assistant :)

prefix in the settings.toml

I don't yet understand what the prefix information in the settings.toml should look like.

owntags/
└── application/
    └── keys/
        β”œβ”€β”€ prefix-1.keyfile	 # Car1
        β”œβ”€β”€ prefix-2.keyfile	 # Car2
	β”œβ”€β”€ prefix-2.keyfile	 # Unicorn
	└── prefix-2.keyfile 	 # Dragon

@settings.toml

[tag_options.prefix prefix-1]
[tag_options.prefix prefix-2]
[tag_options.prefix prefix-3]
[tag_options.prefix prefix-4]


tag_name = "prefix-1" # Car1
tag_name = "prefix-2" # Car2
tag_name = "prefix-3" # Unicorn
tag_name = "prefix-4" # Dragon

or should it look like this?

owntags/
└── application/
    └── keys/
        β”œβ”€β”€ car1.keyfile	 
        β”œβ”€β”€ car2.keyfile	 
	β”œβ”€β”€ unicorn.keyfile	 
	└── dragon.keyfile 	

@settings.toml

[tag_options.prefix]
tag_name = "car1"  
location = true 
waypoint = false  
timestamp = 1000000001  
radius = false  

[tag_options.prefix]
tag_name = "car2"  
location = true 
waypoint = false  
timestamp = 1000000001  
radius = false  

[tag_options.prefix]
tag_name = "unicorn"  
location = true 
waypoint = false  
timestamp = 1000000001  
radius = false  

[tag_options.prefix]
tag_name = "dragon"  
location = true 
waypoint = false  
timestamp = 1000000001  
radius = false  

I'm a noob. Thanks for playing with this project.

First off, thanks for poking at this project. It sat around since I was happy with how it was working and with others taking interest (gives me the warm fuzzies) I'm happy to keep it moving forward.

So, as a heads up, I am noob programmer (can't do list-comprehension or use ternary operators correctly) and a noob at GitHub. Which means I'll probably screw things up as a I learn, with a little help I know we can keep that down to a minimum.

Thanks for being here. With your help and interest I'm sure we'll have fun working on this.

Happy coding!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.