Comments (5)
Can you try
bacnet = BAC0.lite()
bacnet.timehandler.set_timezone("America/Costa_Rica")
from bac0.
Thanks Christian,
I apologize if I wasn't clear before. I encounter the error when calling BAC0.lite() and cannot proceed to set the timezone.
Here are the steps I'm following to reproduce the error:
- I set my computer's time zone to either UTC or America/Costa_Rica (a timezone without daylight saving).
- I set my computer's clock to 2:15 am on March 10, 2024.
- I attempt to initialize BAC0 with
bacnet = BAC0.lite()
.
I assume the failure occurs because, although my computer's time zone does not depend on daylight saving, initializing the library consider the America/Montreal zone, where that hour (2:15am 10March24) would not exist.
Is there a way to change the timezone before initializing the library, perhaps as a parameter at the start? Or could it possibly take the system's time zone?
If I change the initialization inside the library's code to America/Costa_Rica (inside TimeHandler class), the problem disappears, but I would prefer not to edit the library and instead make the change externally.
Thank you very much.
from bac0.
Can you test cloning the master branch and pip install it ? I just modified it to add the arg timezone
and use :
import BAC0
bacnet = BAC0.lite(timezone="America/Costa_Rica")
from bac0.
By the way, I've added that to the new async version that use bacpypes3 that you can try also. Look for branch Async
This will replace the actual version of BAC0 soon
from bac0.
Omg!, thanks Christian. this works perfect!
from bac0.
Related Issues (20)
- Issue with exiting then restarting BAC0 script HOT 2
- Is it possible to monitor EventEnrollment objects? HOT 5
- AttributeError: module 'BAC0' has no attribute 'lite HOT 12
- Discover and WhoIs provide inconsistent results HOT 22
- How to subscribe COVProperty using BAC0? HOT 7
- error while importing BAC0. latest BAC0, latest bokeh HOT 1
- AttributeError in "bacnet = BAC0.connect()" full command HOT 1
- How do I get a UnconfirmedCOVNotification without subscription HOT 3
- Write on local device with external software HOT 8
- BAC0 with Docker HOT 4
- Simulated device not sending COV HOT 3
- In BAC0, Is it possible to expose actual points to Bacnet Server Points ? HOT 7
- Device properties not accessible HOT 4
- Ansyc branch HOT 8
- BAC0 running in docker is not able to discover devices in network HOT 4
- BAC0 writing to a proprietary property of a proprietary object HOT 8
- json file : mac-address HOT 1
- How to disconnect only one device HOT 2
- Issue writing to LAVs HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bac0.