Git Product home page Git Product logo

python-red-alert's Issues

The code cannot be activated

Traceback (most recent call last):
File "c:\Users\User\Desktop\python-red-alert-master\src\main.py", line 150, in
main()
File "c:\Users\User\Desktop\python-red-alert-master\src\main.py", line 108, in main
alert = RedAlert()
File "c:\Users\User\Desktop\python-red-alert-master\src\main.py", line 15, in init
self.locations = self.get_locations_list()
File "c:\Users\User\Desktop\python-red-alert-master\src\main.py", line 83, in get_locations_list
f = open('targets.json')
FileNotFoundError: [Errno 2] No such file or directory: 'targets.json'

Node-Red example

Hi!
My coding skills are terrible, but I'm getting there, slowly. I was wondering if someone can help me make this API into a node in Node-Red, for use in my home automation system. Anyone out there use node-red?

How to access alerts from the past?

Hi thanks for this great repo! Star from me :)

I see the python-red-alert.src.main() will log current alerts happening, but I want to get all the alerts that have happened in the last 4 months (and save them to a file).

Is that possible to do?

Can't run the code

Hey, I was trying to use your python code to make a Red Alert discord bot, but the code won't run and I don't understand the error.

Error:

Traceback (most recent call last):
  File "D:\Amit\RedAlert\DiscordBot\run.py", line 154, in <module>
    main()
  File "D:\Amit\RedAlert\DiscordBot\run.py", line 122, in main
    alert = RedAlert()
  File "D:\Amit\RedAlert\DiscordBot\run.py", line 19, in __init__
    self.locations = self.get_locations_list()
  File "D:\Amit\RedAlert\DiscordBot\run.py", line 84, in get_locations_list
    for line in csv:
  File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\encodings\cp1255.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 1: character maps to <undefined>

Process finished with exit code 1

If you can help me it would be awesome!

How to run a test server

When I multiply the Main file and put alert link to perform "tests" I get the following error

Traceback (Most Recent Call Last):
File "C: \ User's \ User \ Desktop \ Python-Red-Mold-Master \ Src \ Main1.py", LINE 151, in
Main ()
File "C: \ Use \ User \ Desktop \ Python-Red-Hert-Master \ Src \ Main1.py", LINE 119, in Main
Red_alerts = Alert.get_red_Alerts ()
File "C: \ Use \ User \ Desktop \ Python-Rred-Bald-Master \ Src \ Main1.py", LINE 93, in Get_RED_ALRTS
Alerts = R.Content.decode ("UTF-8"). Replace ("\ n", "). Replace (" \ r ",")
Unicodedecodeperror: 'Utf-8

The format of the data I introduced in the JSON file is the data that appears in the Readme.D file.
You can explain why I get this error only when I replace the Home Front Command's link to the link with which I do "tests"

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.