sensor.community
:sparkles: new shiny website built with svelte :heart: for dust and noise measuring project :point_right: https://sensor.community
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.3%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
:sparkles: new shiny website built with svelte :heart: for dust and noise measuring project :point_right: https://sensor.community
Basic Info
- Host: GitHub
- Owner: opendata-stuttgart
- License: mit
- Language: Svelte
- Default Branch: develop
- Homepage: https://sensor.community
- Size: 35.8 MB
Statistics
- Stars: 51
- Watchers: 11
- Forks: 45
- Open Issues: 17
- Releases: 0
Topics
Metadata Files
README.md
sensor.community website
:sparkles: new shiny website for dust and noise measuring project :point_right: sensor.community
How to install
Prerequisites
Get started
inside the folder install the dependencies...
bash
npm install
or with yarn
bash
yarn install
...then start Rollup:
bash
npm run dev or sapper dev
alternative use yarn
bash
yarn install
yarn dev or sapper dev
Navigate to localhost:3000.
You should see your app running. Edit a component file in src, save it, and reload the page to see your changes.
By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the sirv commands in package.json to include the option --host 0.0.0.0.
Getting started with Svelte & Sapper
Website is based on Svelte 3 and Sapper. Please consider reading the documentation.
Translation
1. Create locale file
duplicate locales/en.json file and rename it to language by iso-3166-alpha2 coding, for example fr for French.
Translate the values in the locale file:
javascript
{
"nav": {
"home": "Accueil", <- "Accueil" is the value
...
},
Now duplicate content/airrohr/en folder and rename it again to language by iso-3166-alpha2 coding.
Also duplicate content/dnms/enfor the DNMS guide. Translate both

It's written in markdown. To get used to the markdown syntax, visit www.markdownguide.org.
FYI You can leave the filename. The title will be taken from the beginning of each file, see picture above.
2. Add new language to the init18n.js
Go to src/utils/initI18n.js. Add the new language, in this case it's French.
First add the path to the locale file, then add it to the resources.
```javascript import fr from '../../locales/fr'; // path to the locale file
function initI18n(lng = 'en') { i18next.init({ lng, resources: { en, de de, fr }, ```
Go to src/routes/[lang]/_layout.svelte and extend the array with the new language.
html
<script context="module">
const LANGUAGES = ["en", "de", "fr"]; // <- add new lanuage in the array
const DEFAULT_LANGUAGE = "en";
export async function preload(page) {...
3. Add language to the navbar
To add the language in the navbar go to src/components/LanguageSwitcher.svelte. Scroll down to around Line 24 and add this line with the corresponding language.
javascript
const langauges = [
"gb", "de", "fr", "it", "sk", "ru" // <- add new lanuage in the array
]
4. Add endpoints
Duplicate inside src/routes/endpoints/airrohr or src/routes/endpoints/dnms then en folder to the iso-3166-alpha2, e.g. fr. Inside the index.json.js file change line 8.
````javascript import send from '@polka/send'; import generatedocs from '../../../../utils/generatedocs.js';
let json;
export function get(req, res) { if (!json || process.env.NODEENV !== 'production') { json = JSON.stringify(generatedocs('airrohr/fr')); // <- change the lanuage iso-code }
send(res, 200, json, {
'Content-Type': 'application/json'
});
}
````
Bugs and feedback
The website is in early development, and may have the rough edge here and there.
Deployment
bash
yarn export or sapper export
copy content of __sapper__/export to a ftp server
Happy coding :tada: :raised_hands:
Owner
- Name: Open Data Stuttgart
- Login: opendata-stuttgart
- Kind: organization
- Location: Stuttgart, Germany
- Website: http://codefor.de/stuttgart/
- Repositories: 14
- Profile: https://github.com/opendata-stuttgart
GitHub Events
Total
- Issues event: 2
- Watch event: 2
- Issue comment event: 1
- Push event: 1
- Pull request event: 3
- Fork event: 2
Last Year
- Issues event: 2
- Watch event: 2
- Issue comment event: 1
- Push event: 1
- Pull request event: 3
- Fork event: 2
Committers
Last synced: 7 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| ohheyitsdave | d****c@m****m | 219 |
| DeeKey | D****y | 27 |
| Rajko Zschiegner | r****z@g****e | 23 |
| Pierre-Jean Guéno | c****j@y****m | 22 |
| Pierre-Jean Guéno | p****o@y****r | 19 |
| Maurício Taffarel | m****l@g****m | 18 |
| dependabot[bot] | 4****] | 13 |
| elvith-de | e****e | 11 |
| Petarkir2000 | 3****0 | 8 |
| flavio045 | 6****5 | 6 |
| evertkuiken | i****o@e****l | 5 |
| Michael Lažan | h****n@g****m | 4 |
| Bertrik Sikken | b****k@s****l | 4 |
| Aurimas Liutikas | a****s@l****t | 2 |
| LadislavM | l****j@g****m | 2 |
| MCedoc | M****c | 2 |
| Maxime Jublou | m****e@j****r | 2 |
| lokn | 2****n | 2 |
| C. Jacobs | 5****l | 1 |
| Eric Schaefer | o****g@e****m | 1 |
| Stas | s****v@g****m | 1 |
| centraline | c****e@c****t | 1 |
| ignotus87 | s****i@g****m | 1 |
| nodenetworks | 5****s | 1 |
| reuben honigwachs | r****n@h****e | 1 |
| rouf93 | 7****3 | 1 |
| str3yt | 9****t | 1 |
| Lukas Mocek | l****k@L****l | 1 |
| Phaze-III | x****b@g****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 31
- Total pull requests: 201
- Average time to close issues: 5 months
- Average time to close pull requests: 12 days
- Total issue authors: 22
- Total pull request authors: 30
- Average comments per issue: 1.77
- Average comments per pull request: 0.42
- Merged pull requests: 169
- Bot issues: 0
- Bot pull requests: 27
Past Year
- Issues: 0
- Pull requests: 4
- Average time to close issues: N/A
- Average time to close pull requests: about 1 month
- Issue authors: 0
- Pull request authors: 4
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- ohheyitsdave (7)
- steltenpower (3)
- marcauberer (2)
- RikDrabs (1)
- ituri (1)
- pyrog (1)
- alexey-milovidov (1)
- aebgit (1)
- mouse256 (1)
- toastal (1)
- Sphericals79 (1)
- mattsches (1)
- kirrg001 (1)
- Dr0p42 (1)
- FabienBounoir (1)
Pull Request Authors
- ohheyitsdave (90)
- dependabot[bot] (26)
- pjgueno (16)
- DeeKey (13)
- ricki-z (6)
- Petarkir2000 (6)
- flavio045 (5)
- evertkuiken (5)
- hazarizk (3)
- LadislavM (3)
- ignotus87 (3)
- MCedoc (3)
- lokn (2)
- TomHodson (2)
- kratz00 (2)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- 308 dependencies
- @babel/core ^7.10.5 development
- node-fetch ^3.2.0 development
- svelte ^3.46.4 development
- @fullhuman/postcss-purgecss ^4.1.3
- @polka/send ^1.0.0-next.15
- @rollup/plugin-commonjs ^21.0.2
- @rollup/plugin-json ^4.1.0
- @rollup/plugin-node-resolve ^11.2.1
- @rollup/plugin-replace ^3.1.0
- @sindresorhus/slugify ^1.1.0
- compression ^1.7.4
- country-emoji ^1.5.6
- date-fns ^2.28.0
- golden-fleece ^1.0.9
- gray-matter ^4.0.3
- highlight.js ^11.4.0
- i18next ^21.6.12
- marked ^3.0.8
- polka 1.0.0-next.22
- postcss ^8.4.7
- postcss-cli ^8.3.1
- prismjs ^1.27.0
- rollup ^2.68.0
- rollup-plugin-babel ^5.0.0-alpha.2
- rollup-plugin-svelte ^6.1.1
- rollup-plugin-terser ^7.0.2
- sapper ^0.29.1
- sirv ^1.0.19
- svelte-i18n ^3.3.13
- tailwindcss ^2.2.19
- 305 dependencies