This document has now been incorporated into the uWSGI documentation:
http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html
Steps with explanations to set up a server using:
| - platform: rest | |
| name: voron24_sensor | |
| resource: "http://192.168.8.25:7125/printer/objects/query?heater_bed&extruder&print_stats&toolhead&display_status&virtual_sdcard&temperature_sensor%20raspberry_pi&temperature_sensor%20MCU&temperature_sensor%20chamber_temp" | |
| json_attributes_path: "$.result.status" | |
| json_attributes: | |
| - heater_bed | |
| - extruder | |
| - print_stats | |
| - toolhead | |
| - display_status |
| from django.db import transaction | |
| from django.apps import apps | |
| from django.contrib.contenttypes.fields import GenericForeignKey | |
| from django.db.models.fields.related import ManyToManyField | |
| @transaction.atomic() | |
| def merge(primary_object, *alias_objects): | |
| """Merge several model instances into one, the `primary_object`. | |
| Use this function to merge model objects and migrate all of the related |
| const int rLED = 11; | |
| const int gLED = 9; | |
| const int bLED = 10; | |
| const int sensor = A0; | |
| const float minTemp = 10.0; | |
| const float maxTemp = 50.0; | |
| int redV = 0; | |
| int greenV = 0; |
| h1. Sublime Text 2 - Useful Shortcuts (PC) | |
| Loosely ordered with the commands I use most towards the top. Sublime also offer "full documentation":http://www.sublimetext.com/docs/2/. | |
| h2. Editing | |
| | *Ctrl+C* | copy current line (if no selection) | | |
| | *Ctrl+X* | cut current line (if no selection) | | |
| | *Ctrl+⇧+K*| delete line | | |
| | *Ctrl+↩* | insert line after | |