Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Kimmax109875yTime based? Build simple on/off scripts and call via cron. Don't know where threatening comes into play here
-
Oups my english IS VERY BAD. And multi thread because i wanna try it and i want live data of humidity solar level and all of that live
-
Ok.
1. don't use python threads like that. wrap function with threads, instead of classes.
2. put your code up in github or, git* service, so we can see what you have done.
Related Rants
Hi people first as you know my English is not very poor im sorry for that.
I try to make an automat a sprinkle water and a auto light on a interior garden in aquarium.
For that in python i use main thread, a class Water.py extends Threading and Light.py extends Threading
In the __init__.py file i put my main function that get argv for execution. One of my arguments is -v (--verbose)
I want to pass that args to my class instances.
-I don't want to make one parameter in my constructors because I think we don't passe verbose mode in parameter of constructor.
-I use global not working through de import.
Do you have some magic for me :/ ?
rant
project
home
already google
help
python
wtf