Skip to content

Commit

Permalink
Added color option for small text
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjacquin committed Mar 23, 2019
1 parent 165c5fb commit e4ca6dd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -89,6 +89,7 @@ nano settings.json
| texty | 35 | Vertical text placement from the top |
| fontname | 0 | Font type for the overlay. 0=Simplex, 1=Plain, 2=Duplex, 3=Complex, 4=Triplex, 5=Complex small, 6=Script simplex, 7=Script complex |
| fontcolor | 255 255 255 | Font color in BGR |
| smallfontcolor | 0 0 255 | Small Font color in BGR |
| fontsize | 0.7 | Font size |
| fonttype | 0 | Controls the smoothness of the fonts. 0=Antialiased, 1=8 Connected, 2=4 Connected. |
| fontline | 1 | font line thickness |
Expand Down Expand Up @@ -240,6 +241,12 @@ To disable timelapse, open **config.sh** and set
TIMELAPSE=false
```

Example to generate a timelapse manually:

```
./scripts/timelapse.sh 20190322
```

## Keograms

![](http://www.thomasjacquin.com/allsky-portal/screenshots/keogram-annotated.jpg)
Expand Down Expand Up @@ -314,6 +321,9 @@ make all
```
This will compile the new code and create a new binary.

## Show your sky on your own website

If you have set the upload options to true in `config.sh`, that means you probably already have a website. If you want to display a live view of your sky on your website like in this [example](http://www.thomasjacquin.com/allsky), you can donwload the source files from this repository: [https://github.com/thomasjacquin/allsky-website.git](https://github.com/thomasjacquin/allsky-website.git).

## Share your sky

Expand Down
8 changes: 7 additions & 1 deletion capture.cpp
Expand Up @@ -273,6 +273,10 @@ int main(int argc, char* argv[])
fontcolor[0] = atoi(argv[i+1]); i++;
fontcolor[1] = atoi(argv[i+1]); i++;
fontcolor[2] = atoi(argv[i+1]); i++;}
else if(strcmp(argv[i], "-smallfontcolor") == 0){
smallFontcolor[0] = atoi(argv[i+1]); i++;
smallFontcolor[1] = atoi(argv[i+1]); i++;
smallFontcolor[2] = atoi(argv[i+1]); i++;}
else if(strcmp(argv[i], "-fonttype") == 0){
linenumber = atoi(argv[i+1]); i++;}
else if(strcmp(argv[i], "-fontsize") == 0){
Expand Down Expand Up @@ -331,7 +335,8 @@ int main(int argc, char* argv[])
printf(" -textx - Default = 15 - Text Placement Horizontal from LEFT in Pixels\n");
printf(" -texty = Text Y - Default = 25 - Text Placement Vertical from TOP in Pixels\n");
printf(" -fontname = Font Name - Default = 0 - Font Types (0-7), Ex. 0 = simplex, 4 = triplex, 7 = script\n");
printf(" -fontcolor = Font Color - Default = 255 0 0 - Text blue (BRG)\n");
printf(" -fontcolor = Font Color - Default = 255 0 0 - Text blue (BGR)\n");
printf(" -smallfontcolor = Small Font Color - Default = 0 0 255 - Text red (BGR)\n");
printf(" -fonttype = Font Type - Default = 0 - Font Line Type,(0-2), 0 = AA, 1 = 8, 2 = 4\n");
printf(" -fontsize - Default = 0.5 - Text Font Size\n");
printf(" -fontline - Default = 1 - Text Font Line Thickness\n");
Expand Down Expand Up @@ -481,6 +486,7 @@ printf("%s",KGRN);
printf(" Text Position: %dpx left, %dpx top\n",iTextX,iTextY);
printf(" Font Name: %d\n",fontname[fontnumber]);
printf(" Font Color: %d , %d, %d\n",fontcolor[0], fontcolor[1], fontcolor[2]);
printf(" Small Font Color: %d , %d, %d\n",smallFontcolor[0], smallFontcolor[1], smallFontcolor[2]);
printf(" Font Line Type: %d\n",linetype[linenumber]);
printf(" Font Size: %1.1f\n",fontsize);
printf(" Font Line: %d\n",linewidth);
Expand Down
1 change: 1 addition & 0 deletions settings.json.repo
Expand Up @@ -24,6 +24,7 @@
"texty":"30",
"fontname":"0",
"fontcolor":"255 255 255",
"smallfontcolor":"0 0 255",
"fonttype":"0",
"fontsize":"0.7",
"fontline":"1",
Expand Down

0 comments on commit e4ca6dd

Please sign in to comment.