<commit_before># HomA - Solar.js
This is a small Node.js command-line utility that shows the time of dawn and dusk in the framework's interfaces and publishes various other events to ```/events/sun``` based on the solar position.


### Installation
```
$ npm install
```

### Start
``` 
$ node rules.js [--brokerHost 127.0.0.1] [--brokerPort 1883] [--systemId $SYSTEMID]
$ publish.js -t "/sys/294028-solar/latitude" -p "48.802545" -r
$ publish.js -t "/sys/294028-solar/longitude" -p "9.226254" -r
```

The latitude and longitude values of your home can easily be obtained with the help of Google Maps. Just point it to the desired location, right-click the map and select _What is here?_. <commit_msg>Added systemd service enable howto<commit_after># HomA - Solar.js
This is a small Node.js command-line utility that shows the time of dawn and dusk in the framework's interfaces and publishes various other events to ```/events/sun``` based on the solar position.


### Installation
```
$ npm install
```

### Start
``` 
$ node rules.js [--brokerHost 127.0.0.1] [--brokerPort 1883] [--systemId $SYSTEMID]
$ publish.js -t "/sys/294028-solar/latitude" -p "48.802545" -r
$ publish.js -t "/sys/294028-solar/longitude" -p "9.226254" -r
```

The latitude and longitude values of your home can easily be obtained with the help of Google Maps. Just point it to the desired location, right-click the map and select _What is here?_. 

Enable service on systems that run systemd
```
$ sudo systemctl enable $HOMA_BASEDIR/components/solar/homa-solar.service
```
{'fraction_non_alphanumeric': 0.12201420271142673, 'fraction_numerical': 0.04777275661717237, 'mean_word_length': 3.9206349206349205, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4522468', 'n_tokens_mistral': 556, 'n_tokens_neox': 486, 'n_words': 197}