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

Error with main.py #1

Open
djtomcat opened this issue Apr 20, 2018 · 3 comments
Open

Error with main.py #1

djtomcat opened this issue Apr 20, 2018 · 3 comments

Comments

@djtomcat
Copy link

Hi , hope someone can help me here
i just tried to test the script and when i try to start the main.py i get this error message :

D:\csgo-gsi-to-arduino-develop\python>main.py
Traceback (most recent call last):
  File "D:\csgo-gsi-to-arduino-develop\python\main.py", line 16, in <module>
    __config__ = json.load(json_data_file)
  File "C:\Python27\lib\json\__init__.py", line 291, in load
    **kw)
  File "C:\Python27\lib\json\__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "C:\Python27\lib\json\decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Python27\lib\json\decoder.py", line 380, in raw_decode
    obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 10 column 5 (char 179)

This is my config.json :

{
    "csgogsi":{
        "ip":"127.0.0.1",
        "port":"3000",
        "secret":"MY_SECRET_PHRASE"
    },
    "serial":{
        "port": "com3",
        "baudrate": 9600,
    }
}

The LED on the Arduino is on, so the code must be okay with the main.ino

Greetings
Björn

@anthonytournier
Copy link
Owner

Hello,

Remove the comma at the baudrate declaration line, it should worked after that. Sorry for the mistake i'll fix this soon.

@djtomcat
Copy link
Author

Thank you for your fast reply :) It worked perfectly
BTW: Does it only show green in main menu and yellow/blue for t/ct ?
Are there future updates for integrating Bombtimer (even with real flashtimings slow/fast/faster) or maybe an health hud (green/yellow/red) ?

@anthonytournier
Copy link
Owner

I was planning to release some bomb timer effects and others animations, but i have no times to do it actually :(

Repository owner locked as resolved and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants