Skip to content

Instantly share code, notes, and snippets.

View autrilla's full-sized avatar

Adrian Utrilla autrilla

View GitHub Profile
import crc16
from collections import namedtuple
from time import sleep
import struct
#### Offsets from STX start
PACKET_STX = 0
PACKET_ADDR_TO = 1
PACKET_ADDR_FROM = 2
PACKET_FLAGS = 3
import crc16
from collections import namedtuple
from time import sleep
import struct
#### Offsets from STX start
PACKET_STX = 0
PACKET_ADDR_TO = 1
PACKET_ADDR_FROM = 2
PACKET_FLAGS = 3
"""
Simulation of a RS485 network and its devices, for the purpose of testing
and implementing a protocol.
"""
import crc16
from collections import namedtuple
from time import sleep
import struct
"""
Simulation of a RS485 network and its devices, for the purpose of testing
and implementing a protocol.
"""
import crc16
from collections import namedtuple
from time import sleep
import struct
"""
Simulation of a RS485 network and its devices, for the purpose of testing
and implementing a protocol.
"""
import crc16
from collections import namedtuple
from time import sleep
import struct
import random
(Web Serie A)[autrilla@autrilla ~/Documents/Programming/FAVEGA/Web_Serie_A]$ pip install django
Downloading/unpacking django
Downloading Django-1.7.1-py2.py3-none-any.whl (7.4MB): 7.4MB downloaded
Installing collected packages: django
Cleaning up...
Exception:
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python3.4/site-packages/pip/commands/install.py", line 283, in run
# SETTINGS
# Tuple of tuples of directories to be watched and corresponding AWS S3 bucket
watch_directories = (
('/home/autrilla/Documents/Scripts/test/', 's3://test/'),
)
aws_sqs_url = 'https://sqs.eu-west-1.amazonaws.com/198042352723/FAVEGASync'
sqs_update_interval = 1
# SETTINGS
# Tuple of tuples of directories to be watched and corresponding AWS S3 bucket
watch_dirs = (
('/home/autrilla/Documents/Scripts/test/', 's3://tiendaganadera/'),
)
aws_sqs_url = 'https://sqs.eu-west-1.amazonaws.com/198042352723/FAVEGASync'
sqs_update_interval = 1
# SETTINGS
# Tuple of tuples of directories to be watched and corresponding AWS S3 bucket
watch_dirs = (
('/home/autrilla/Documents/Scripts/test/', 's3://tiendaganadera/'),
)
aws_sqs_url = 'https://sqs.eu-west-1.amazonaws.com/198042352723/FAVEGASync'
sqs_update_interval = 5
<!DOCTYPE html>
<html>
<head>
<title>
{% block title %}
</title>
</head>
<body>
<nav>