Skip to content

Commit

Permalink
Migrating repository, add README & CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
bclswl0827 committed Dec 12, 2023
1 parent 44af8a2 commit eae83db
Show file tree
Hide file tree
Showing 75 changed files with 313 additions and 137 deletions.
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# These owners will be the default owners for everything in the repo.
# Unless a later match takes precedence, @bclswl0827 will be requested for
# review when someone opens a pull request.

* @bclswl0827
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Bug report
about: Create a report to help us improve
---

**Description**
<!-- A clear and concise description of what the issue is about. What are you trying to do? -->

**Expected behaviour**
<!-- What did you expect to happen? -->

**What is happening instead?**
<!-- Please, give full error messages and/or log. -->

**Additional context**
<!-- Add any other context about the problem here. If applicable, add screenshots to help explain your problem. -->

**How to reproduce?**
<!-- Tell us how to reproduce this issue. How can someone who is starting from scratch reproduce this behaviour as minimally as possible? -->

**Files**
<!-- A list of relevant files for this issue. Large files can be uploaded one-by-one or in a tarball/zipfile. -->
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Feature request
about: Suggest an idea for this project
---

**Is your feature request related to a problem? Please describe.**
<!-- Add a clear and concise description of what the problem is. E.g. *I'm always frustrated when [...]* -->

**Describe the solution you'd like**
<!-- Add a clear and concise description of what you want to happen. -->

**Describe alternatives you've considered**
<!-- Add a clear and concise description of any alternative solutions or features you've considered. -->

**Additional context**
<!-- Add any other context or screenshots about the feature request here. -->
20 changes: 20 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
**Description**
<!--
Please explain the changes you made here.
If the feature changes current behaviour, explain why your solution is better.
-->

Before submitting your PR, please indicate which issues (in any of the repos) are either fixed or closed by this PR. See [GitHub Help: Closing issues using keywords](https://help.github.com/articles/closing-issues-via-commit-messages/).

- [ ] DO make sure you are requesting to **pull a topic/feature/bugfix branch** (right side). Don't request your master!
- [ ] DO make sure you are making a pull request against the **master branch** (left side). Also you should start *your branch* off *our master*.
- [ ] DO make sure that AnyShake Observer can be successfully built. See [builds](https://github.com/anyshake/observer/blob/master/build/README.md).
- [ ] DO make sure that related issues are opened in other repositories. I.e., the AnyShake Explorer, hardware RC filter cutoff frequency need to be updated accordingly.
- [ ] AVOID breaking the continuous integration build.

**Further comments**
<!--
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did, what alternatives you considered, etc.
:heart: Thank you!
-->
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,5 @@ jobs:
file_glob: true
file: build/release/*
body: |
This is the auto-build release for Observer.
This release is automatically generated by GitHub Actions.
Please refer to [CHANGELOG.md](https://github.com/anyshake/observer/blob/master/CHANGELOG.md) for details.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Changelog

Starting from v2.2.5, all notable changes to this project will be documented in this file.

## v2.2.5 (2023-12-12)

- Migrating to [anyshake/observer](https://github.com/anyshake/observer)
- Supplement of README, CHANGELOG, build instructions, etc.
- Use templates to standardize ISSUEs and Pull Requests
- Update repository frontend logos
42 changes: 40 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,41 @@
# Observer
<p align="center">
<img src="https://raw.githubusercontent.com/anyshake/logotype/master/banner_observer.png" width="550"/>
</p>

测站上位机源码
[![Build Status](https://github.com/anyshake/observer/actions/workflows/release.yml/badge.svg)](https://github.com/anyshake/observer/actions/workflows/release.yml)
[![Downloads](https://img.shields.io/github/downloads/anyshake/observer/total.svg)](https://github.com/anyshake/observer/releases/latest)
[![Latest Release](https://img.shields.io/github/release/anyshake/observer.svg?style=flat-square)](https://github.com/anyshake/observer/releases/latest)
[![Go Report Card](https://goreportcard.com/badge/github.com/anyshake/observer?style=flat-square)](https://goreportcard.com/report/github.com/anyshake/observer)

AnyShake Observer use serial port to collect & parse seismic data from [AnyShake Explorer](https://github.com/anyshake/explorer), also provides a web-based easy-to-use UI for monitoring and exporting seismic data (Support SAC & MiniSEED format)

AnyShake Observer is written in Go, which means it can easily port to a variety of OS and CPU architectures, even embedded Linux devices, AnyShake Observer also supports PostgreSQL, MariaDB (MySQL), SQLite, and SQL Server as seismic data archiving engines.

## Preview

![Preview - Home](https://raw.githubusercontent.com/anyshake/logotype/master/preview_home.gif)
![Preview - Realtime](https://raw.githubusercontent.com/anyshake/logotype/master/preview_realtime.gif)
![Preview - History](https://raw.githubusercontent.com/anyshake/logotype/master/preview_history.gif)
![Preview - Export](https://raw.githubusercontent.com/anyshake/logotype/master/preview_export.gif)
![Preview - Settings](https://raw.githubusercontent.com/anyshake/logotype/master/preview_setting.gif)


## Features

Please refer to our docs at [https://anyshake.org/features](https://filebrowser.org/features)

## Install

TO BE DONE

## Configuration

TO BE DONE

## Contributing

TO BE DONE

## License

[The MIT License (MIT)](https://raw.githubusercontent.com/anyshake/observer/master/LICENSE)
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.2.4p
v2.2.5p
4 changes: 2 additions & 2 deletions app/devel/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package devel
import (
"net/http"

"github.com/bclswl0827/observer/app"
_ "github.com/bclswl0827/observer/docs"
"github.com/anyshake/observer/app"
_ "github.com/anyshake/observer/docs"
"github.com/gin-gonic/gin"
swaggerFiles "github.com/swaggo/files"
gs "github.com/swaggo/gin-swagger"
Expand Down
6 changes: 3 additions & 3 deletions app/history/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package history
import (
"fmt"

"github.com/bclswl0827/observer/app"
"github.com/bclswl0827/observer/driver/dao"
"github.com/bclswl0827/observer/publisher"
"github.com/anyshake/observer/app"
"github.com/anyshake/observer/driver/dao"
"github.com/anyshake/observer/publisher"
)

func filterHistory(start, end int64, options *app.ServerOptions) ([]publisher.Geophone, error) {
Expand Down
4 changes: 2 additions & 2 deletions app/history/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package history
import (
"strings"

"github.com/bclswl0827/observer/config"
"github.com/bclswl0827/observer/utils/text"
"github.com/anyshake/observer/config"
"github.com/anyshake/observer/utils/text"
)

func getNetwork(*config.Conf) string {
Expand Down
4 changes: 2 additions & 2 deletions app/history/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package history
import (
"net/http"

"github.com/bclswl0827/observer/app"
"github.com/bclswl0827/observer/server/response"
"github.com/anyshake/observer/app"
"github.com/anyshake/observer/server/response"
"github.com/gin-gonic/gin"
)

Expand Down
6 changes: 3 additions & 3 deletions app/history/sac.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"sort"
"time"

"github.com/bclswl0827/observer/app"
"github.com/bclswl0827/observer/publisher"
"github.com/bclswl0827/observer/utils/duration"
"github.com/anyshake/observer/app"
"github.com/anyshake/observer/publisher"
"github.com/anyshake/observer/utils/duration"
"github.com/bclswl0827/sacio"
)

Expand Down
4 changes: 2 additions & 2 deletions app/history/sample.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"time"

"github.com/bclswl0827/observer/publisher"
"github.com/bclswl0827/observer/utils/duration"
"github.com/anyshake/observer/publisher"
"github.com/anyshake/observer/utils/duration"
)

func getSampleRate(data []publisher.Geophone, channel string) (int, error) {
Expand Down
2 changes: 1 addition & 1 deletion app/mseed/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"strings"

"github.com/bclswl0827/observer/config"
"github.com/anyshake/observer/config"
)

func getMiniSEEDBytes(conf *config.Conf, fileName string) ([]byte, error) {
Expand Down
2 changes: 1 addition & 1 deletion app/mseed/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"time"

"github.com/bclswl0827/observer/config"
"github.com/anyshake/observer/config"
)

func getMiniSEEDList(conf *config.Conf) ([]MiniSEEDFile, error) {
Expand Down
4 changes: 2 additions & 2 deletions app/mseed/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package mseed
import (
"net/http"

"github.com/bclswl0827/observer/app"
"github.com/bclswl0827/observer/server/response"
"github.com/anyshake/observer/app"
"github.com/anyshake/observer/server/response"
"github.com/gin-gonic/gin"
)

Expand Down
2 changes: 1 addition & 1 deletion app/socket/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package socket
import (
"encoding/json"

"github.com/bclswl0827/observer/publisher"
"github.com/anyshake/observer/publisher"
"github.com/gorilla/websocket"
)

Expand Down
6 changes: 3 additions & 3 deletions app/socket/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package socket
import (
"net/http"

"github.com/bclswl0827/observer/app"
"github.com/bclswl0827/observer/publisher"
"github.com/bclswl0827/observer/server/response"
"github.com/anyshake/observer/app"
"github.com/anyshake/observer/publisher"
"github.com/anyshake/observer/server/response"
"github.com/gin-gonic/gin"
"github.com/gorilla/websocket"
)
Expand Down
2 changes: 1 addition & 1 deletion app/station/adc.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package station

import "github.com/bclswl0827/observer/config"
import "github.com/anyshake/observer/config"

func getADC(conf *config.Conf) ADC {
return ADC{
Expand Down
2 changes: 1 addition & 1 deletion app/station/geophone.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package station

import "github.com/bclswl0827/observer/config"
import "github.com/anyshake/observer/config"

func getGeophone(conf *config.Conf) Geophone {
return Geophone{
Expand Down
2 changes: 1 addition & 1 deletion app/station/location.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package station

import "github.com/bclswl0827/observer/config"
import "github.com/anyshake/observer/config"

func getLocation(conf *config.Conf) Location {
return Location{
Expand Down
4 changes: 2 additions & 2 deletions app/station/module.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package station

import (
"github.com/bclswl0827/observer/app"
"github.com/bclswl0827/observer/server/response"
"github.com/anyshake/observer/app"
"github.com/anyshake/observer/server/response"
"github.com/gin-gonic/gin"
)

Expand Down
4 changes: 2 additions & 2 deletions app/station/station.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package station

import (
"github.com/bclswl0827/observer/feature"
"github.com/bclswl0827/observer/utils/duration"
"github.com/anyshake/observer/feature"
"github.com/anyshake/observer/utils/duration"
)

func getStation(options *feature.FeatureOptions) System {
Expand Down
2 changes: 1 addition & 1 deletion app/station/types.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package station

import "github.com/bclswl0827/observer/publisher"
import "github.com/anyshake/observer/publisher"

type Station struct{}

Expand Down
4 changes: 2 additions & 2 deletions app/trace/ceic.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/json"
"time"

"github.com/bclswl0827/observer/utils/duration"
"github.com/bclswl0827/observer/utils/request"
"github.com/anyshake/observer/utils/duration"
"github.com/anyshake/observer/utils/request"
)

type CEIC struct {
Expand Down
4 changes: 2 additions & 2 deletions app/trace/cwa.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"time"

"github.com/PuerkitoBio/goquery"
"github.com/bclswl0827/observer/utils/duration"
"github.com/bclswl0827/observer/utils/request"
"github.com/anyshake/observer/utils/duration"
"github.com/anyshake/observer/utils/request"
)

const HOST_IP_TO_BYPASS_GFW = "168.95.246.1:443"
Expand Down
4 changes: 2 additions & 2 deletions app/trace/hko.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"strings"
"time"

"github.com/bclswl0827/observer/utils/duration"
"github.com/bclswl0827/observer/utils/request"
"github.com/anyshake/observer/utils/duration"
"github.com/anyshake/observer/utils/request"
"github.com/sbabiv/xml2map"
)

Expand Down
4 changes: 2 additions & 2 deletions app/trace/jma.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"strings"
"time"

"github.com/bclswl0827/observer/utils/duration"
"github.com/bclswl0827/observer/utils/request"
"github.com/anyshake/observer/utils/duration"
"github.com/anyshake/observer/utils/request"
)

type JMA struct {
Expand Down
4 changes: 2 additions & 2 deletions app/trace/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package trace
import (
"net/http"

"github.com/bclswl0827/observer/app"
"github.com/bclswl0827/observer/server/response"
"github.com/anyshake/observer/app"
"github.com/anyshake/observer/server/response"
"github.com/gin-gonic/gin"
)

Expand Down
4 changes: 2 additions & 2 deletions app/trace/scea-b.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"time"

"github.com/bclswl0827/observer/utils/duration"
"github.com/bclswl0827/observer/utils/request"
"github.com/anyshake/observer/utils/duration"
"github.com/anyshake/observer/utils/request"
)

type SCEA_B struct {
Expand Down
4 changes: 2 additions & 2 deletions app/trace/scea-e.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package trace
import (
"time"

"github.com/bclswl0827/observer/utils/duration"
"github.com/bclswl0827/observer/utils/request"
"github.com/anyshake/observer/utils/duration"
"github.com/anyshake/observer/utils/request"
)

type SCEA_E struct {
Expand Down
4 changes: 2 additions & 2 deletions app/trace/usgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"time"

"github.com/bclswl0827/observer/utils/duration"
"github.com/bclswl0827/observer/utils/request"
"github.com/anyshake/observer/utils/duration"
"github.com/anyshake/observer/utils/request"
)

type USGS struct {
Expand Down
Loading

0 comments on commit eae83db

Please sign in to comment.