Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulation of temperature changes does not work through setting attributes #21

Open
avkondrat opened this issue Nov 8, 2023 · 4 comments

Comments

@avkondrat
Copy link

tried various options for changing the attribute values in the diagram.json according to the description.

"attrs": { "genDebug": "0", "deviceID": "010203040506", "owDebug": "1", "temperature":"25.9375", "familyCode": "16", "minTemp": "10", "maxTemp": "20", "tempWaveForm": "triangle", "tempWaveFreq": "0.0156"}

the temperature is displayed constant in the console - Temperature is: 25.94 C

wherein output for the chip code:
chip-ds18b20
*** DS18B20 setting attributes:
chip-ds18b20
gen_debug: 0
chip-ds18b20
ow_debug: 0
chip-ds18b20
temperature: 25.937500
chip-ds18b20
family_code: 10
chip-ds18b20
min_temp: -55.000000
chip-ds18b20
max_temp: 125.000000
chip-ds18b20
temp_freq: 0.000000
chip-ds18b20
temp_mode: 0
chip-ds18b20
device_id: 10000000000000fb
chip-ds18b20
DS18B20 chip initialised

what am I doing wrong? or is there an error in the source?

@avkondrat
Copy link
Author

avkondrat commented Nov 8, 2023

@bonnyr
Copy link
Owner

bonnyr commented Nov 8, 2023 via email

@avkondrat
Copy link
Author

Hi, Bonny...do you have any news?

@bonnyr
Copy link
Owner

bonnyr commented Nov 13, 2023

The project indicates you're using an older release.
I suggest updating to the most recent release (0.4.5) and test again.
When I did, the temperature seems to be behaving as intended: https://wokwi.com/projects/381317255436327937

If this works for you, please let me know and I can close the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants