<commit_before># Xpuhil

> 

## Hardware Requirements

- None

## Software Requirements

```sh
root@board:~# pip install dweepy
root@board:~# opkg install python-dev
```

## Setup

```sh
root@board:~# curl https://raw.githubusercontent.com/TheIoTLearningInitiative/CodeLabs/master/Xpuhil/setup.sh -o - | sh
```

## Code

```sh
root@board:~/CodeLabs/Xpuhil# vi main.py
```

```python
#!/usr/bin/python

import atexit
import dweepy
import signal
import sys
import time

import pyupm_grove as grove

light = grove.GroveLight(0)

datafreeboard = {}
datadweet = "Xpuhil"

def SIGINTHandler(signum, frame):
	raise SystemExit

def exitHandler():
	print "Exiting"
        time.sleep(2)
        datafreeboard['alive'] = "0"
        datafreeboard['luxes'] =  0
        datafreeboard['message'] = "None"
        dweepy.dweet_for(datadweet, datafreeboard)
	sys.exit(0)

atexit.register(exitHandler)
signal.signal(signal.SIGINT, SIGINTHandler)

if __name__ == '__main__':

    message = "Hello Xpuhil!"

    while True:

        luxes = light.value()

        datafreeboard['alive'] = "1"
        datafreeboard['luxes'] =  luxes
        datafreeboard['message'] = message
        dweepy.dweet_for(datadweet, datafreeboard)

        time.sleep(2)
```

## Execution

```sh
root@edison:~/CodeLabs/Xpuhil# python main.py 
...
root@edison:~/CodeLabs/Xpuhil# 
```<commit_msg>Updates Xpuhil/documentation/Xpuhil.md<commit_after># Xpuhil



> Xpuhil Pronounced:/ʃpuχil̥/ (also Xpujil) is a Maya archaeological site located in the Mexican state of Campeche, in the vicinity of the modern-day town of Xpujil. The area surrounding Xpuhil, along Federal Highway 186, is rich with other Maya sites, including Becan and Calakmul. The name xpuhil means "cat's tail" in reference to a type of vegetation found locally [Wikipedia](https://en.wikipedia.org/wiki/Xpuhil)

## Hardware Requirements

* None

## Software Requirements

```sh
root@board:~# pip install dweepy
root@board:~# opkg install python-dev
```

## Setup

```sh
root@board:~# curl https://raw.githubusercontent.com/TheIoTLearningInitiative/CodeLabs/master/Xpuhil/setup.sh -o - | sh
```

## Code

```sh
root@board:~/CodeLabs/Xpuhil# vi main.py
```

```python
#!/usr/bin/python

import atexit
import dweepy
import signal
import sys
import time

import pyupm_grove as grove

light = grove.GroveLight(0)

datafreeboard = {}
datadweet = "Xpuhil"

def SIGINTHandler(signum, frame):
    raise SystemExit

def exitHandler():
    print "Exiting"
        time.sleep(2)
        datafreeboard['alive'] = "0"
        datafreeboard['luxes'] =  0
        datafreeboard['message'] = "None"
        dweepy.dweet_for(datadweet, datafreeboard)
    sys.exit(0)

atexit.register(exitHandler)
signal.signal(signal.SIGINT, SIGINTHandler)

if __name__ == '__main__':

    message = "Hello Xpuhil!"

    while True:

        luxes = light.value()

        datafreeboard['alive'] = "1"
        datafreeboard['luxes'] =  luxes
        datafreeboard['message'] = message
        dweepy.dweet_for(datadweet, datafreeboard)

        time.sleep(2)
```

## Execution

```sh
root@edison:~/CodeLabs/Xpuhil# python main.py 
...
root@edison:~/CodeLabs/Xpuhil# 
```



{'fraction_non_alphanumeric': 0.13261761919797915, 'fraction_numerical': 0.0053678560151563, 'mean_word_length': 3.7496251874062967, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '336820', 'n_tokens_mistral': 1213, 'n_tokens_neox': 1154, 'n_words': 252}